package menu.lt.pers.menu.Bean;

import android.os.Parcel;
import android.os.Parcelable;

public class UserBean implements Parcelable {
    private int id;
    private String username;
    private String userhead;
    private String phone;
    private String pwd;
    private int isdelete;

    protected UserBean(Parcel in) {
        id = in.readInt();
        username = in.readString();
        isdelete = in.readInt();
        userhead = in.readString();
        phone = in.readString();
        pwd = in.readString();
    }

    public UserBean() {
    }

    public static final Creator<UserBean> CREATOR = new Creator<UserBean>() {
        @Override
        public UserBean createFromParcel(Parcel in) {
            return new UserBean(in);
        }

        @Override
        public UserBean[] newArray(int size) {
            return new UserBean[size];
        }
    };

    public String getUserhead() {
        return userhead;
    }

    public void setUserhead(String userhead) {
        this.userhead = userhead;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(int isdelete) {
        this.isdelete = isdelete;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(username);
        dest.writeInt(isdelete);
        dest.writeString(userhead);
        dest.writeString(phone);
        dest.writeString(pwd);
    }
}
